<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/9/11
 * Time: 9:48
 */
namespace frontend\models;
use yii;
use yii\db\ActiveRecord;

class Category extends ActiveRecord{

    public static function getNavCat($where){
        return self::find()->where($where)->asArray()->all();
    }
}